package com.xoa.dao.WFE;

import com.xoa.dao.base.BaseMapper;
import com.xoa.model.workflow.FlowFormType;
import com.xoa.model.workflow.FlowFormTypeExtends;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface WFEFormTypeMapper extends BaseMapper<FlowFormType> {

	 List<FlowFormType> selectFlowFormType(Map<String, Object> maps);

	 FlowFormType qureyItemMax(@Param("formId") Integer formId);

	 int updateItemMax(FlowFormType flowFormType);


	 List<FlowFormType> selectFormBySort(@Param("sortId") Integer sortId);

	 List<FlowFormType> queryBySearchValue(@Param("searchValue") String searchValue, @Param("sortId") Integer sortId);

	 int insertSelectParam(FlowFormType flowFormType);

	 int updateSelectParam(FlowFormTypeExtends flowFormType);

	 int checkFormUserNumber(@Param("formId") Integer formId);

	 int deleteForm(@Param("formId") Integer formId);

    List<FlowFormType> selectAllForm();

    List<FlowFormType> getFrombyFlowId(Integer flowId);
}